using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;

namespace CTP.Entitys
{
    /// <summary>
    /// 资金账号信息(根据CTP返回的信息再定义)
    /// </summary>
    public struct AccountInformation
    {
        ///投资者帐号
        public string UserAccount;
        ///上次质押金额
        public double PreMortgage;
        ///上次信用额度
        public double PreCredit;
        ///上次存款额
        public double PreDeposit;
        ///上次结算准备金
        public double PreBalance;
        ///上次占用的保证金
        public double PreMargin;
        ///利息基数
        public double InterestBase;
        ///利息收入
        public double Interest;
        ///入金金额
        public double Deposit;
        ///出金金额
        public double Withdraw;
        ///冻结的保证金
        public double FrozenMargin;
        ///冻结的资金
        public double FrozenCash;
        ///冻结的手续费
        public double FrozenCommission;
        ///当前保证金总额
        public double CurrMargin;
        ///资金差额
        public double CashIn;
        ///手续费
        public double Commission;
        ///平仓盈亏
        public double CloseProfit;
        ///持仓盈亏
        public double PositionProfit;
        ///期货结算准备金
        public double Balance;
        ///可用资金
        public double Available;
        ///可取资金
        public double WithdrawQuota;
        ///基本准备金
        public double Reserve;
        ///信用额度
        public double Credit;
        ///质押金额
        public double Mortgage;
        ///交易所保证金
        public double ExchangeMargin;
    }
}
